package com.huijinhui.wlmtsys.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huijinhui.wlmtsys.pojo.entity.LeaveApplication;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface LeaveApplicationMapper extends BaseMapper<LeaveApplication> {
    @Insert("insert into leave_application(id, user_id, start_time, end_time, reason, status, create_time, update_time) values (#{id}, #{userId}, #{startTime}, #{endTime}, #{reason}, #{status}, #{createTime}, #{updateTime})")
    LeaveApplication insertTo(LeaveApplication leaveApplication);
    // 可以在这里定义自定义的查询方法
}